package com.example.module_main.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter
//主页面适配器
class MainPageAdapter constructor(fm:FragmentManager,private val listFragment:List<Fragment> ,behavior:Int):FragmentPagerAdapter(fm,behavior) {
    override fun getCount(): Int=listFragment.size

    override fun getItem(position: Int): Fragment =listFragment[position]

}